function delRoute(route,path){
  let routePath = ''
  route.some((item)=>{
    if(item.meta.type == 'route' && !item?.meta?.config.includes('invisible')){
      if(item.children.length > 0){
        let childrenPath =''
        if(item.path.indexOf('/') != 0){
          childrenPath = '/' + item.path
        } 
        routePath = delRoute(item.children, path+childrenPath)
        if(routePath){
          return true
        }
      }else{
        let childrenPath = ''
        if(item.path.indexOf('/') != 0){
          childrenPath = '/' + item.path
        } 
        routePath = path + childrenPath
        return true
      }
    }
  })
  return routePath
}
export function getRoutePath(route){
  let routePath=''
  route.some((item)=>{
    if(item.meta.type == 'route' && !item?.meta?.config.includes('invisible')){
      if(item.children.length > 0 ){
        routePath = delRoute(item.children,item.path)
        if(routePath){
          return true
        }
      }else{
        routePath = item.path
        return true
      }
    }
  })
  if(routePath.indexOf('/') != 0){
    routePath = '/' + routePath
  } 
  return routePath
}